﻿using System;
using System.Linq;
using System.Web.Mvc;
using HomePortal.Models;

namespace HomePortal.Controllers
{
    public class HomeController : Controller
    {
        private readonly HomePortalContext context = new HomePortalContext();

        public ActionResult Index()
        {
            var rnd = new Random();
            ViewBag.Message = "";
            var r = rnd.Next(1,29);
           // ViewBag.quote = context.Quotes.First(x => x.QuoteID == r).Text;
            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "";

            return View();
        }

        public ActionResult Agreement()
        {
            return View();
        }
    }
}
